﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Site.Master" AutoEventWireup="true" CodeBehind="grouplist.aspx.cs" Inherits="VK.Casemeet.Web.Admin.Groups.grouplist" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<%@ Import Namespace="VK.Comm" %>


<asp:Content ID="Content2" ContentPlaceHolderID="contentBody" runat="server">
    <div class="bodyContent divBody">
        <div class="divListOper">
            <a class="tableOperNew" href="groupadd.aspx">发布团购</a>
        </div>
        <div class="divSearch">
            <div class="ico"></div>
            <div class="content">
                <div style="width:250px;">
                    名称: <asp:TextBox ID="txtName" runat="server" Width="200" CssClass="inputText"></asp:TextBox>
                </div>
            </div>
            <div class="search" style="width:80px;">
                <asp:Button ID="butSearch" runat="server" CssClass="inputbutSearch" 
                    Text="搜 索 >>" onclick="butSearch_Click" />
            </div>
        </div>

        <asp:Repeater ID="rptGroup" runat="server" onitemcommand="rptLine_ItemCommand">
        <HeaderTemplate>
        <table class="tableList" cellspacing="0">
            <thead>
                <tr>
                    <th>团购ID</th>
                    <th>企业ID</th>
                    <th>商品分类ID</th>
                    <th>标题</th>
                    <th>团购价格</th>
                    <th>原价</th>
                    <th>报名人数</th>
                    <th>截至时间</th>
                    <th>创建时间</th>
                    <th>启用</th>
                    <th style="width:110px;"><span>操作</span></th>
                </tr>
            </thead>
            <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td><%# Eval("groupID")%></td>
                    <td><%# Eval("ShopID")%></td>
                    <td><%# Eval("procTypeID")%></td>
                    <td><%# Eval("Title")%></td>
                    <td><%# Eval("Price")%></td>
                    <td><%# Eval("Discount")%></td>
                    <td><%# Eval("SigupTotal")%></td>
                    <td><%# Eval("EndingTime")%></td>
                    <td><%# Eval("CTime")%></td>
                    <td class="txtcen"><%# VK.Casemeet.PageHelper.GetIsEnableLabel((bool)Eval("IsEnable")) %></td>
                    <td class="txtcen">
                        <a class="left tableOperEdit" href="groupEdit.aspx?groupID=<%# Eval("groupID")%>">&nbsp;</a>
                        <asp:LinkButton CssClass="left tableOperDelete" ID="butDelete" CommandName="Delete" CommandArgument='<%# Eval("groupID")%>' runat="server" OnClientClick="return confirm('您确定要删除吗？删除后将不可恢复！');">&nbsp;</asp:LinkButton>
                    </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
        </table>
        </FooterTemplate>
        </asp:Repeater>

    </div>

    
</asp:Content>